package com.example.myblog.service;

import com.example.myblog.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.myblog.exception.BaseException;
import com.example.myblog.vo.CommentVO;

import java.util.List;

/**
 * <p>
 * 评论管理 服务类
 * </p>
 *
 * @author 叶兴
 * @since 2022-09-29
 */
public interface CommentService extends IService<Comment> {

    int insertOneCommentForBlog(CommentVO commentVO) throws BaseException;

    List<Comment> getAllComments(String id) throws BaseException;

    int insertOneCommentForUser(CommentVO commentVO) throws BaseException;

    int updateCommentLikes(Integer commentId,String username) throws BaseException;
}
